
public class Datet {
	private int year,month,day;
	public Datet(int year,int month,int day){
		this.year=year;
		this.month=month;
		this.day=day;
	}
	public void printf(Datet date){
		System.out.println(year+"-"+month+"-"+day);
	}
	public void setyear(int year){
		year=year;
	}
	public int getyear(){
		return year;
	}
	public void setmonth(){
		month=month;
	}
	public int getmonth(){
		return month;
	}
	public void setday(){
		day=day;
	}
	public int getday(){
		return day;
	}
}
